Only try to label resources if ACM is enabled.
authorEwan Mellor <ewan@xensource.com>
Sat, 16 Dec 2006 12:54:43 +0000 (12:54 +0000)
committerEwan Mellor <ewan@xensource.com>
Sat, 16 Dec 2006 12:54:43 +0000 (12:54 +0000)
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/xm-test/lib/XmTestLib/acm.py

index a0d8a43c0980e9ab98d44b968671d5715c8f3138..c670bc039bcd136fa4dd726f4684bb0f2f93152f 100644 (file)
@@ -57,6 +57,8 @@ def ACMLabelResources(resources):
 
 # Applications may label resources explicitly by calling this function
 def ACMLabelResource(resource, label='red'):
+    if not isACMEnabled():
+        return
     if acm_verbose:
         print "labeling resource %s with label %s" % (resource, label)
     if not ACM_LABEL_RESOURCES: